package com.mtsmda.test;

public class QuizFul2 {

	public static void main(String[] args) {
		q11();
	}

	private static void q11() {
		byte[] a = { 49, 50, 51, 52, 53, 54, 55 };

		String b = new String(a); // 1
		System.out.println(b);

		String c = new String(a, 2, 4); // 2
		System.out.println(c);
	}

}

class SuperClass {

	void method() {
		System.out.println("method()");
	}

	protected void method(String s) {
		System.out.println(s);
	}

}

class SubClass extends SuperClass {
	@Override
	protected void method() {
		System.out.println("method() 2");
	}

	@Override
	public void method(String s) {
		System.out.println(s);
	}
}